import type { AreaListData } from "@/types/area"
import type { BillingRulesListData, ParkCarListData, ParkCarListParams } from "@/types/billingRules"
import { request } from "@/utils/reuqest"


/**
 * 获取计费规则列表
 * @param {}
 * @returns
 */
export const getBillingRulesListAPI = () => {
  return request<BillingRulesListData[]>('/parking/rule/dropList', 'GET')
}

/**
 * 获取停车缴费列表
 * @param {}
 * @returns
 */

export const getParkCarListAPI = (params: ParkCarListParams) => {
  return request<ParkCarListData>('/parking/payment/list', 'GET', params)
}